<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>自运营号管理</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- 确保适当的绘制和触屏缩放 -->
	<link rel="stylesheet" href="{$url_css}bootstrap.min.css" type="text/css">
	<link rel="stylesheet" href="{$url_css}admin.css" type="text/css">
	<script type="text/javascript" src="{$url_js}jquery-1.12.0.min.js"></script>
	<script type="text/javascript" src="{$url_js}calendar/WdatePicker.js"></script>
	<script type="text/javascript" src="{$url_js}layer/layer.js"></script>
	<style type="text/css">
		{literal}
		.page_info div {
			display: inline-block;
		}

		.page_info .p_l {
			color: #666;
			float: left;
			line-height: 69px;
			font-size: 16px;
		}

		.page_info .p_r {
			color: #337AB7;
			float: right;
		}

		{/literal}
	</style>
</head>
<body>

<div class="container" style="width:96%">
	<form action="?do=default" method="get">
		<table class="table table-bordered table-striped" align="center">
			<tr>
				<td colspan="5">查询条件</td>
			</tr>
			<tr>
				<td class="form-inline">
					<div class="input-group">
						<div class="input-group-addon">用户ID</div>
						<input class="form-control" name="s_userId" type="text"
						       value="{if $s_data['s_userId']}{$s_data['s_userId']}{/if}"
						       onkeyup="value=value.replace(/[^0-9]/g,'')"/>
					</div>
				</td>

				<td class="form-inline">
					<div class="input-group">
						<div class="input-group-addon">用户名称</div>
						<input class="form-control" name="s_name" type="text"
						       value="{if $s_data['s_name']}{$s_data['s_name']}{/if}"/>
					</div>
				</td>

				<td class="form-group col-xs-2" colspan="3" align="right">

					<input type="submit" value="搜索" class="btn btn-primary"/>
				</td>
			</tr>
		</table>
	</form>

	<table class="table table-bordered table-striped" align="center">
		<tr>
			<td><a href="?do=Edit" class="btn btn-primary">添加</a></td>
		</tr>
	</table>

	<table class="table table-bordered table-striped" align="center">
		<tr align="center">
			<td style="width: 10%">用户ID</td>
			<td style="width: 45%">名称</td>
			<td style="width: 10%">关注</td>
			<td style="width: 10%">操作</td>
		</tr>
		{if $list}
			{foreach $list as $k => $v}
				<tr align="center">
					<td>{$v.UserId}</td>
					<td>{$v.NickName}</td>
					<td align="center"><a onclick="followCircle({$v.UserId},3)" class="btn btn-info">关注</a></td>
					<td><a href="?do=Edit&id={$v.UserId}" class="btn btn-info">修改</a></td>
				</tr>
			{/foreach}
		{else}
			<td colspan="12">本页暂无相关数据</td>
		{/if}

	</table>
	<table class="table table-bordered table-striped" align="center">
		<tr>
			<td colspan="7" align="right">
				<div class="page_info">
					{if $page_info['count']}
						<div class="p_l">一共 {$page_info['count']} 条数据,共 {$page_info['page']} 页</div>{/if}
				</div>
				<div class="p_r">{$pagination}</div>
			</td>
		</tr>
	</table>
</div>
	{literal}
		<script type="text/javascript">
            function followCircle(userId,type){
                layer.open({
                    type: 2,
                    title: '选择用户',
                    maxmin: true,
                    shadeClose: true, //点击遮罩关闭层
                    area : ['80%' , '70%'],
                    content: '/data/modules/user/userPrivate.php?do=ToLike&id='+userId+'&type='+type
                });
            }
		</script>
	{/literal}
</body>
</html>